/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

/**
 *
 * @author hicham
 * Define a relation between 2 differents concepts of the ontology.
 */
public class Relation {
    public static int idLastCreated = 0;

    private int id;
    private Concept conceptInit;
    private Concept conceptDest;
    private String name;

     public Relation() {
        super();
        this.id = Commun.IncrementId(FormalConcept.idLastCreated,1);
    }

    public Relation(Concept conceptInit, Concept conceptDest, String name) {
        this();
        this.conceptInit = conceptInit;
        this.conceptDest = conceptDest;
        this.name = name;
    }

    public Concept getConceptDest() {
        return conceptDest;
    }

    public void setConceptDest(Concept conceptDest) {
        this.conceptDest = conceptDest;
    }

    public Concept getConceptInit() {
        return conceptInit;
    }

    public void setConceptInit(Concept conceptInit) {
        this.conceptInit = conceptInit;
    }

    public static int getIdLastCreated() {
        return idLastCreated;
    }

    public static void setIdLastCreated(int idLastCreated) {
        Relation.idLastCreated = idLastCreated;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }



}
